#include "metafield.h"

MetaField::MetaField(MetaData *parent) :
    QObject(parent),
    d(new Data())
{
}

MetaField::MetaField(const QString &name, MetaData *parent) :
    QObject(parent),
    d(new Data())
{
    setName(name);
}

MetaField::MetaField(const MetaField &other) :
    QObject(other.parent()),
    d(other.d)
{
}

QString MetaField::name()
{
    return d->name;
}

void MetaField::setName(const QString &name)
{
    d->name = name;
}

bool MetaField::editable() const
{
    return d->editable;
}

void MetaField::setEditable(bool editable)
{
    d->editable = editable;
}


